package com.app.bimo.library_db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

@Entity
public class AppData {

    private int type;//客户端升级类型 1 红点提示 2 红点+弹框 3 强制升级
    @Id
    private String version;//版本号
    private String remark;//	更新功能描述
    private String url;//	安装包下载地址
    /**
     * 是否有新版本升级，1有 0没有
     * 注：等于1时返回的是当前版本信息
     * 等于0时返回的是需更新的最新版本
     */
    private int isUpgrade;


    @Generated(hash = 1437406883)
    public AppData(int type, String version, String remark, String url,
            int isUpgrade) {
        this.type = type;
        this.version = version;
        this.remark = remark;
        this.url = url;
        this.isUpgrade = isUpgrade;
    }

    @Generated(hash = 1112619805)
    public AppData() {
    }


    public int getType() {
        return type;
//        return 2;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getVersion() {

        return version;
//        return "1.2.5";
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUrl() {
//        return "http://app.2345.cn/appsoft/81562.apk";
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getIsUpgrade() {
//        return 1;
        return isUpgrade;
    }

    public void setIsUpgrade(int isUpgrade) {
        this.isUpgrade = isUpgrade;
    }
}
